package com.itsu.api.controllerApi;

import com.itsu.pojo.vo.PageResult;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RequestMapping("comments")
public interface CommentsControllerApi {

    @PostMapping
    void addComments(@RequestParam("movementId") String movementId,
                      @RequestParam("comment") String comment);

    @GetMapping
    ResponseEntity getComments(@RequestParam("movementId") String movementId,
                               @RequestParam("page") Integer page,
                               @RequestParam("pagesize") Integer pagesize);
}

